package xyz.codej.websocket.utils;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName: ParameterRunnable
 * @Description TODO
 * @Author 王华君
 * @Date 2020/4/1 5:56 下午
 * @VERSION 1.0
 */
@Slf4j
@Data
public class ServerRunnable implements Runnable{
    Server server;

    public ServerRunnable(Server server) {
        this.server = server;
    }

    @Override
    public void run() {
        try {
            server.start();
        } catch (InterruptedException e) {
            log.error(e.getMessage(), e);
        }
    }
}
